<%-- 
    Document   : aste_annullate_amministratore
    Created on : 27-gen-2013, 11.57.19
    Author     : Alice
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="utils.StoricoAsta"%>
<%@page import="java.util.List"%>
<%@page import="java.util.List"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>AsteAnnullateAmministratore Page</title>
        <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> 
    </head>
    <body>
    <div class="hero-unit">
        <h1>We Buy <small class="text-info">Ciao Amministratore, ${param.user}</small></h1>    
    </div>
    
        <div class="row">
      <div class="span3 bs-docs-sidebar">
        <ul class="nav nav-tabs nav-stacked">
          <li><a href="/PROGETTO_WEB_2/AmministratoreAsteCorrenti"><i class="icon-bookmark"></i> Aste in Corso</a></li>
          <li><a href="/PROGETTO_WEB_2/AmministratoreVenditeConcluse"><i class="icon-ok"></i> Vendite Concluse</a></li>         
          <li><a href="/PROGETTO_WEB_2/AmministratoreAsteAnnullate"><i class=" icon-remove"></i> Aste Annullate</a></li>                   
          <li><a href="/PROGETTO_WEB_2/logout.jsp"><i class="icon-off"></i> Log Out</a></li>
        </ul>
      </div>

            
        </div>
        <div style="position:absolute;left:300px;top:220px;">
            
            <ul>
                <h3 class="text-error"><strong>${param.message}</strong></h3>
                <h3 class="text-warning">Aste Annullate:</h3>
                <table id="selectable" class="table table-bordered" >
           <tr>
             
                 <th>
                    IdProdotto
                </th>
                 <th>
                   Nome Prodotto
                </th>
                <th>
                    Descrizione
                </th>
                <th>
                   Username Venditore
                </th>
                
                <th>
                    Categoria
                </th>
                <th>
                    Offerta
                </th>
                <th>
                    Data/Ora Offerta
                </th>
                <th></th>
           </tr>
           
           <%
          session= request.getSession();
          //String nomecogn=request.getParameter("amministratore");
          List<StoricoAsta> storA =(ArrayList<StoricoAsta>)session.getAttribute("asteANNU");
          System.out.println("SIZE="+storA.size());
          String euro=" €";
          for(int i = 0; i < storA.size(); i ++){; 
          %>
          <form action="../AmministratoreRipristinaAsta" method="post">
              
              <tr>
              <input type="hidden" name="idProd" value="<%= storA.get(i).getIdProdotto() %>" >   
              <td><%= storA.get(i).getIdProdotto() %></td>
              <td><%= storA.get(i).getNomeProd() %></td>
              <td><%= storA.get(i).getDescrizione() %></td>
              <td><%= storA.get(i).getUsername() %></td>
         
              <td><%= storA.get(i).getCategoria() %> </td>
              
              <td><%= storA.get(i).getOfferta() +euro %></td>
              <td><%= storA.get(i).getDataOraOfferta() %> </td>
            
              <td>
                  <input type="submit" value="Ripristina" class="btn btn-primary">
               </td>
                </form>      
           <%};%>
               </tr>
        </table>
                </ul>
        </div>
        
       
      

    </body>
</html>
